package com.btpj.hospital_server.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 配置security的访问白名单
 *
 * @author BTPJ  2020/8/21
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "security.ignored")
public class UrlsIgnoreConfig {

    /**
     * 请求白名单
     */
    private List<String> urls = new ArrayList<>();
}
